package com.ithiema.edu.info.manager.controller;

import com.ithiema.edu.info.manager.domain.Student;

public class OtherStudentController extends BaseStudentController{
    //简化学员信息输入
    @Override
    Student input_Student(String id) {
        System.out.println("请输入姓名");
        String name = sc.next();
        System.out.println("请输入性别");
        String sex = sc.next();
        System.out.println("请输入生日");
        String birthday = sc.next();
        //返回封装信息的学生类(通过set方法封装信息)
        Student stu = new Student();
        stu.setId(id);
        stu.setName(name);
        stu.setSex(sex);
        stu.setBirthday(birthday);
        return stu;
    }
}
